/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package allthemoneyflowers.model;

import allthemoneyflowers.model.Login;
import allthemoneyflowers.controllers.LoginController;
import allthemoneyflowers.dao.ReadXML;
import allthemoneyflowers.model.User;


/**
 *
 * @author wolf
 */
public class AllTheMoneyFlowers {
     private static Login login = new Login();;
     private static ReadXML read = new ReadXML();;
     private static LoginController control = new LoginController();;
     private static User user = new User();;
     
     public static void main(String[] args) {
         
         login.setUsernameLogin("Teo");
         login.setPasswordLogin("1234");
           
         user = control.userSearch(login,read.readFileXML());
         if(user!=null)
          {
            System.out.printf("O user brethike" +user.getUsername() +user.getPassword() +user.getUserID());
          }
          else
          {
            System.out.printf("O user dn brethike");
          }
    }
}
